<{include file="fenzhan:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right">
				<{if $pager.from == 'about'}>
				<{link ctl="article/about:so" class="button" load="mini:搜索文章" width="mini:400" title="搜索"}> &nbsp; &nbsp;
				<{elseif $pager.from == 'help'}>
				<{link ctl="article/help:so" class="button" load="mini:搜索文章" width="mini:400" title="搜索"}> &nbsp; &nbsp;
				<{elseif $pager.from == 'page'}>
				<{link ctl="article/page:so" class="button" load="mini:搜索文章" width="mini:400" title="搜索"}> &nbsp; &nbsp;
				<{else}>
				<{link ctl="article/article:so" class="button" load="mini:搜索文章" width="mini:400" title="搜索"}> &nbsp; &nbsp;
				<{/if}>	
				<{if $pager.from == 'about'}>
				<{link ctl="article/about:create" priv="hidden" class="button" title="添加"}></td>
				<{elseif $pager.from == 'help'}>
				<{link ctl="article/help:create" priv="hidden" class="button" title="添加"}></td>
				<{elseif $pager.from == 'page'}>
				<{link ctl="article/page:create" priv="hidden" class="button" title="添加"}></td>
				<{else}>
				<{link ctl="article/article:create" priv="hidden" class="button" title="添加"}></td>
				<{/if}>
				</td>
			</td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr>
		<th class="w-100">ID</th><th>标题</th><th class="w-200">分类</th><{if $pager.from != 'article'}><th class="w-100">页面名称</th><{/if}>
		<th class="w-50">隐藏</th><th class="w-50">状态</th><th class="w-100">添加时间</th><th class="w-150">操作</th>
	</tr>
    <{foreach $items as $item}>
    <tr>
		<td class="left"><label><input type="checkbox" value="<{$item.article_id}>" name="article_id[]" CK="PRI"/><{$item.article_id}><label></td>
		<td class="left"><{$item.title}></td><td><{$item.cat_title}></td><{if $pager.from != 'article'}><td><{$item.page}></td><{/if}>
		<td><{if $item.hidden}><span class="red">隐藏</span><{else}>显示<{/if}></td>
		<td><{if $item.audit}><b class="blue">已发布</b><{else}><b class="red">待审箱</b><{/if}></td><td><{$item.dateline|format}></td>
		<td>
			<{if $item.from == 'about'}>
			<{link ctl="article/about:edit" args=$item.article_id title="修改" class="button"}>
			<{elseif $item.from == 'help'}>
			<{link ctl="article/help:edit" args=$item.article_id title="修改" class="button"}>
			<{elseif $item.from == 'page'}>
			<{link ctl="article/page:edit" args=$item.article_id title="修改" class="button"}>
			<{else}>
			<{link ctl="block/item:push" arg0='article' arg1=$item.article_id title="推送" load="mini:推送文章" class="button"}>
			<{link ctl="article/article:edit" args=$item.article_id title="修改" class="button"}>
			<{/if}>
			<{if $item.from == 'about'}>
			<{link ctl="article/about:delete" args=$item.article_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
			<{elseif $item.from == 'help'}>
			<{link ctl="article/help:delete" args=$item.article_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
			<{elseif $item.from == 'page'}>
			<{link ctl="article/page:delete" args=$item.article_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
			<{else}>
			<{link ctl="article/article:delete" args=$item.article_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
			<{/if}>	
		</td>
	</tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="text-align">没有数据</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left">
				<{link ctl="article/article:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}>
				<{link ctl="block/item:batch" args='article' type="button" load="mini:批量推荐文章" batch="mini:PRI" priv="hide" value="批量推荐"}>
				<{link ctl="article/article:doaudit" type="button" submit="mini:#items-form" confirm="mini:确定要批量审核选中的内容吗?" priv="hide" value="批量审核"}>
			</td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="fenzhan:common/footer.html"}>